<include  file='Public:header'/>
    <div class="local">
        当前位置: 系统 > 管理员管理 > 角色管理 >角色权限
    </div>
    <div class="action">
        <em>当前用户组：</em>{$role.role_name}
    </div>
    <div class="listBox clfx">

        <div class="cl"></div>
        
        <form  target="simpleO2O_frm" action="{:U('authSave')}" method="post">
        <table cellpadding="0"  cellspacing="0" width="100%" class="rembertable">

            <foreach name="menus" item="var">
                <if condition="($var.parent_id eq 0) and ($var.is_show eq 1) ">  
                    <foreach name="menus" item="var2">
                        <eq name="var2.parent_id" value="$var.menu_id">
                        <if condition="$var2.is_show eq 1">   
                            <tr>
                                <th style="text-align: left;padding-left: 10px;"> <input type="checkbox" class="checkAll" rel="{$var2.menu_id}" value="" /><b>{$var.menu_name}</b> > {$var2.menu_name} </th>
                            </tr>
                            <tr>
                                <td style="text-align: left;padding-left: 10px;">
                                    <foreach name="menus" item="var3">
                                        <eq name="var3.parent_id" value="$var2.menu_id">
                                        <label><input class="child_{$var2.menu_id}" type="checkbox" name="menu_id[]" <in name="var3.menu_id" value="$menuIds">checked="checked"</in> value="{$var3.menu_id}" /> {$var3.menu_name}</label>
                                        </eq>
                                    </foreach>   
                                 </td>  
                            </tr>
                        </if>     
                        </eq>
                    </foreach>       
                </if>
            </foreach>   
            <tr>
                <td  align="left" style="padding-left: 20px;text-align: left;">
                    <input type="submit"  class="remberSubmit" value="确定授权"  />
                    <input type="hidden" name="id" value="{$id}">
                </td>
            </tr>
        </table>
        </form>
<include  file='Public:footer'/>       